ROX index algorithm